<?php
global $app_error;

if(count($app_error) > 0) : ?>
	<!-- Errors -->
	<div style="text-align: left; width: 80%;">Errors/Warnings/Notices:</div>
	<div style="text-align: left; border: 2px solid #cccccc; padding: 3px; width: 80%;">
	<table style="text-align: left; padding: 3px; width: 80%;">
		<tr>
			<td>Type:</td>
			<td>Line:</td>
			<td>Message:</td>
		</tr>
		<?php foreach($app_error as $e) : ?>
			<tr>
				<td><?php echo $e['type']; ?></td>
				<td><?php echo $e['line']; ?></td>
				<td><?php echo $e['message']; ?></td>
			</tr>
		<?php endforeach; ?>
	</table>
	</div>
	<!-- END Errors -->
<?php endif; ?>